package util;

import config.ApplicationConfig;
import javazoom.jl.player.Player;

import java.io.File;

public class PlayAudio {
    protected Player player;
    protected File audioFile;

    public void setAudioFile(File audioFile) {
        this.audioFile = audioFile;
    }

    public void setAudioFile(String path) {
        setAudioFile(new File(ApplicationConfig.getPath() + ".." + File.separator + ".." + File.separator + "audio" + File.separator + path));
    }
}
